let mongoose=require('mongoose')
mongoose.connect('mongodb://127.0.0.1:27017/dream')
.then(()=>{
    console.log('服务器已开启')
})
.catch((err)=>{
    console.log('服务器已开启',err)
})
module.exports = mongoose;
